import { type } from "@testing-library/user-event/dist/type"

export interface ALLDATALIST {
    list: LISTDATAMOCK[],
    childata:CHILDRENDATALIST[],
    filt:CHILDRENDATALIST[]
}


export interface LISTDATAMOCK {
    children: CHILDRENDATALIST[]
    user: string,
    img: string,
    title: string,
}


export interface CHILDRENDATALIST {
    [x: string]: any
    user: string,
    page: string,
    num:string,
    img: string,
    title: string,
}

export const GETLISTDATA = 'getlistdata'
export type GETLISTDATA = typeof GETLISTDATA
export interface GETLISTDATATYPES{
    type:GETLISTDATA
    payload:LISTDATAMOCK[]
}

export const CHILDATA = 'childata'
export type CHILDATA = typeof CHILDATA
export interface CHILDATALSITTYPE {
    type:CHILDATA,
    payload:CHILDRENDATALIST[]
}

export const FILTERSHOU = 'filtershou'
export type FILTERSHOU = typeof FILTERSHOU
export interface FILTERSHODATALISTTYPE{
    type:FILTERSHOU,
    payload:CHILDRENDATALIST[]
}






export type ALLCTTON =FILTERSHODATALISTTYPE| GETLISTDATATYPES|CHILDATALSITTYPE
